#include <windows.h>
#include "CPartyInvitePacket.h"

CPartyInvitePacket::CPartyInvitePacket(CChar * inviter, CChar * invitee,unsigned char inviteType) {
	memset(this->data, 0, 0x10*2);
	this->type = 0xDC;
	this->size = 0x10; 
	memcpy(&this->data[0x04-0x04], &(invitee->m_id), sizeof(int));
	unsigned short targId = invitee->getTargId();
	memcpy(&this->data[0x08-0x04], &targId, sizeof(unsigned short));
	data[0x0B-0x04] = inviteType;
	memcpy(&this->data[0x0C-0x04], inviter->m_name, 16);
}

CPartyInvitePacket::~CPartyInvitePacket() {

}